package com.vrv.app.main;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.RelativeLayout;

import com.vrv.app.R;
import com.vrv.app.task.ShipCheckActivity;
import com.vrv.common.utils.ViewUtils;

/**
 *
 * @author 曹保利
 *
 */
public class TaskActivity extends Activity implements OnClickListener {

    private RelativeLayout shipCheck = null;
    private RelativeLayout boaterCheck = null;
    private RelativeLayout gooutCheck = null;
    private RelativeLayout singin = null;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        setContentView(R.layout.activity_task);

        findViews();

    }

    private void findViews() {
        shipCheck = (RelativeLayout) findViewById(R.id.navTaskShipCheck);
        boaterCheck = (RelativeLayout) findViewById(R.id.navTaskBoaterCheck);
        gooutCheck = (RelativeLayout) findViewById(R.id.navTaskGooutCheck);
        singin = (RelativeLayout) findViewById(R.id.navSinin);

        shipCheck.setOnClickListener(this);
        boaterCheck.setOnClickListener(this);
        gooutCheck.setOnClickListener(this);
        singin.setOnClickListener(this);
    }

    @Override
    public void onClick(View v) {
        switch (v.getId()) {
        case R.id.navTaskShipCheck:
            ViewUtils.forward(TaskActivity.this, com.vrv.app.task.ShipCheckFormActivity.class);
            break;
        case R.id.navTaskBoaterCheck:
            ViewUtils.forward(TaskActivity.this, com.vrv.app.task.ShipCheckFormActivity.class);
            break;
        case R.id.navTaskGooutCheck:
            ViewUtils.forward(TaskActivity.this, com.vrv.app.task.ShipCheckFormActivity.class);
            break;
        case R.id.navSinin:
            ViewUtils.forward(TaskActivity.this, ShipCheckActivity.class);
            break;
        }
    }
}
